package com.xbongbong.pro.dynamic.pojo.dto;

import com.xbongbong.pro.detailtab.dto.team.TeamDetailUpdateDTO;
import com.xbongbong.saas.domain.entity.UserTeamEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 *团队更新
 *
 *@author weijianxun
 */
@Setter
@Getter
@ToString
public class DynamicTeamUpdateDTO implements Serializable {
    private static final long serialVersionUID = -6746410175810812525L;

    private TeamDetailUpdateDTO teamDetailUpdateDTO;
    private UserTeamEntity userTeamEntity;

    public static DynamicTeamUpdateDTO initDynamicTeamUpdateDTO(TeamDetailUpdateDTO teamDetailUpdateDTO,UserTeamEntity userTeamEntity){
        DynamicTeamUpdateDTO dynamicTeamUpdateDTO = new DynamicTeamUpdateDTO();
        dynamicTeamUpdateDTO.setTeamDetailUpdateDTO(teamDetailUpdateDTO);
        dynamicTeamUpdateDTO.setUserTeamEntity(userTeamEntity);
        return dynamicTeamUpdateDTO;
    }
}
